//定义store
import { defineStore } from "pinia"
export const useUser = defineStore('users', {
    state() {
        return {
            userInfo: {},
            name: '李雷',
            menu:[]
        }
    },
    getters: {

    },
    actions: {

    },
    persist: {
        storage: sessionStorage,
        paths: ['userInfo']
    }
})